package com.le.tester.book.concurrentjavafight.l7_1_7;

import com.le.tester.webpage.periodCallback.Callback;

import java.util.concurrent.RunnableFuture;

/**
 * createTime：2022/11/10 14:26
 * description：
 */
public interface CancellableTask<T> extends Callback<T> {

    void cancel();

    RunnableFuture<T> newTask();

}

